<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改个人信息</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入 Bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body background="img/2.jpg">
<div th:replace="commons/bar::topbar"></div>
<div>
    <div style="width: 200px;float: left">
        <ul class="list-group">
            <li class="list-group-item">原始信息如下</li>
            <li class="list-group-item">Password:<a th:text="${user.password}"></a></li>
            <li class="list-group-item">Phone:<a th:text="${user.phone}"></a></li>
            <li class="list-group-item">Email<a th:text="${user.email}"></a></li>
        </ul>
    </div>
    <div style="width: 200px;float: left">
        <form class="form-horizontal" method="post" action="/update/user" >
            <div class="form-group">
                <div class="col-sm-10">
                    Password:<input type="password" style="width: 200px" class="form-control" th:value="${user.password}" name="password" id="inputPassword3" placeholder="Password">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-10">
                    Email:<input type="email" style="width: 200px" class="form-control" th:value="${user.email}" name="email"  placeholder="Email">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-10">
                    Phone:<input type="text" style="width: 200px" class="form-control" th:value="${user.phone}" name="phone"  placeholder="电话">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="submit" class="btn btn-default">sumbit</button>
                </div>
            </div>
        </form>
    </div>
</div>
    <a style="color: #d21e1e" th:text="${msg}"></a>
</body>
</html>